//
//  CommentView.m
//  xxShare
//
//  Created by 柳麟喆 on 2018/3/30.
//  Copyright © 2018年 lzLiu. All rights reserved.
//

#import "CommentView.h"

@implementation CommentView

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        _inputView = [[CMInputView alloc]initWithFrame:CGRectMake(10, 5, 300, 36)];
        _inputView.placeholder = @"评论点什么";
        _inputView.placeholderFont = [UIFont systemFontOfSize:16];
        _inputView.font = [UIFont systemFontOfSize:16];
        
        _publishBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        [_publishBtn setFrame:CGRectMake(_inputView.llz_right + 5, 5, 60, 36)];
        [_publishBtn setTitle:@"发表" forState:UIControlStateNormal];
        [_publishBtn setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
        
        [self addSubview:_inputView];
        [self addSubview:_publishBtn];
        self.backgroundColor = [UIColor whiteColor];
        
    }
    return self;
}

@end
